//导入vue得到vue构造函数
import Vue from 'vue'


import { NavBar, Field, Form, button, Toast } from 'vant';
// 导航栏
Vue.use(NavBar);
//登陆框
Vue.use(Field);
//表单验证
Vue.use(Form);
Vue.use(button);

//登陆提示框
Vue.use(Toast);

// 首页模块
import { Tabbar, TabbarItem, Image as VanImage, Tag, Col, Row, Icon, Cell, CellGroup, Popup, DatetimePicker } from 'vant';
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(VanImage);
Vue.use(Tag);
Vue.use(Col);
Vue.use(Row);
Vue.use(Icon);
Vue.use(Cell);
Vue.use(CellGroup);

// 用户模块
import { Dialog, Uploader } from 'vant';
Vue.use(Dialog);

// 性别选择弹框
Vue.use(Popup);
// 年龄选择
Vue.use(DatetimePicker);
// 上传头像
Vue.use(Uploader);

// 首页
import { Tab, Tabs, List, PullRefresh, Grid, GridItem, Lazyload } from 'vant';
Vue.use(Tab);
Vue.use(Tabs)
Vue.use(List)
Vue.use(PullRefresh);
// 宫格
Vue.use(Grid);
Vue.use(GridItem);
// 图片懒加载
Vue.use(Lazyload);

// 搜索框
import { Search } from 'vant';
Vue.use(Search);
